{% extends '::base.html.twig' %} 
{% block module_name %}Inventario :: Proveedor {{proveedor.nombre}}{% endblock %}
{% block title %}Inventario{% endblock %}
{% block customScripts %}
<script src="{{ asset('bundles/EndorBundle/js/jquery.dataTables.min.js') }}"></script>
{% endblock %}
{% block body %}

<h2>Entradas</h2>
<div class="widget_inside">
    <table class="regular">
        <thead>
            <tr>
                <th>Fecha de Entrada</th>
                <th>Cantidad</th>
                <th>Bodega</th>
                <th>Articulo</th>
            </tr>
        </thead>
        <tbody>
            {% for entrada in entradas %}
                <tr>
                    <td>
                        {{entrada.fechaEntrada.format("d/m/Y - H : i : s")}}
                    </td>
                    <td>
                        {{entrada.cantidad}}
                    </td>
                    <td>
                        {{entrada.bodega.nombre}}
                    </td>
                    <td>
                        {{entrada.articulo.marca}} {{entrada.articulo.modelo}}
                    </td>
                </tr>
            {% endfor %}
        </tbody>
    </table>
</div>
<script>
$(document).ready(function(){
    $('.regular').dataTable({
        "sPaginationType": "full_numbers",
        "bJQueryUI": true
    });
});
</script>
{% endblock %}